package com.apple.reveal.controller.web;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

@Controller
public class UserWebController {

	
	@RequestMapping(value = "/", method = RequestMethod.GET)
	public void index(HttpServletRequest req, HttpServletResponse resp) {

		try {
			req.getRequestDispatcher("index.html").forward(req,resp);
			//resp.sendRedirect("location.html");
			
		} catch (Exception e) {
			e.printStackTrace();
		}
	}
	
	
}
